<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', "MainController@index")->name('todolist.index');
Route::get('/create', "MainController@create")->name('todolist.create');
Route::get('/edit/{id}', "MainController@edit")->name('todolist.edit');
Route::post('/store', "MainController@store")->name('todolist.store');
Route::get('/ok/{id}', "MainController@ok")->name('todolist.ok');
Route::get('/undid/{id}', "MainController@undid")->name('todolist.undid');
